/*
 *
100
free(): double free detected in tcache 2
已放弃 (核心已转储)

 */
#include <iostream>
using namespace std;
class Integer{
	private:
		int *m_pi ;
	public:
		Integer(int i = 0){
			m_pi = new int(i);
		}
		void print(void){
			cout << *m_pi << endl;
		}
		~Integer(){
			delete m_pi;
		}
};
int main(void){
	
	Integer i1(100);
	Integer i2 = i1;  //拷贝构造函数
	i2.print();
	return 0;
}
